package com.demo;

import com.demo.service.SystemService;
import com.demo.service.UserService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class C7Application {

    public static void main(String[] args) {
       ConfigurableApplicationContext contenxt= SpringApplication.run(C7Application.class,args);
        SystemService systemService=contenxt.getBean(SystemService.class);
        UserService userService = contenxt.getBean(UserService.class);
        systemService.getSystemVersion();
        System.out.println("------------------------分隔线------------------------------");
        userService.getUserById("1");
    }


}
